<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>webrx</title>
    <style>
        .page a, .page span {
            display: inline-block;
            text-decoration: none;
            padding: 2px;
            border: 1px solid gray;
            min-width: 16px;
            text-align: center;
            margin: 2px;
            border-radius: 5px;
        }

        .page a:hover {
            color: #fff;
            background-color: #94acef;
        }

        .page span {
            color: #fff;
            background-color: #94acef;
        }
    </style>
</head>
<body>
<?php
require_once './inc/db.php';
$pagesize = 2;
$currpage = isset($_GET['p']) ? $_GET['p'] : 1;
$ds = page('select * from t_user', [], $currpage, $pagesize);
if (!$ds) exit('没有数据');
?>
<?= $ds['pageinfo'] ?>
<pre>
<?php print_r($ds['data']); ?>
</pre>
<?= $ds['pageinfo'] ?>
</body>
</html>

